package com.szd.qiongyou20.home.search.interfaces;

import com.szd.qiongyou20.home.search.bean.AskBean;
import com.szd.qiongyou20.home.search.bean.GoodsBean;
import com.szd.qiongyou20.home.search.bean.JnBean;
import com.szd.qiongyou20.home.search.bean.MddBean;
import com.szd.qiongyou20.home.search.bean.TieZiBean;
import com.szd.qiongyou20.home.search.bean.UserBean;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by SZD on 2016/12/26.
 */

public interface ISearch {

    // 目的地的数据
    @GET("qyer/search/index")
    Call<MddBean> getMddData(@QueryMap Map<String, String> map);


    // 锦囊数据
    @GET("qyer/search/index")
    Call<JnBean> getJnData(@QueryMap Map<String, String> map);

    // 问答
    @GET("qyer/ask/question/search_list")
    Call<AskBean> getAskData(@QueryMap Map<String,String> map);


    //帖子
    @GET("qyer/search/index")
    Call<TieZiBean> getTieziData(@QueryMap Map<String, String> map);

    // 商品数据
    @POST("qyer/discount/zk/search_list")
    Call<GoodsBean> getGoodsData(@QueryMap Map<String, String> map);

    // 用户
    @GET("qyer/search/index")
    Call<UserBean> getUserData(@QueryMap Map<String, String> map_User);

}
